<template>
  <div class="category">
    <h2>{{ title }}</h2>
    <slot name="s1"><div style="background: red;" class="st">● 插槽-1</div></slot>
    <slot name="s2"><div style="background: greenyellow;"  class="st">● 插槽-2</div></slot>
    <slot name="s3"><div style="background: blue;"  class="st">● 插槽-3</div></slot>
  </div>
</template>

<script setup lang="ts" name="Category">
defineProps(["title"]);
</script>

<style scoped>
.category {
  background-color: skyblue;
  border-radius: 10px;
  box-shadow: 0 0 10px;
  padding: 10px;
  width: 200px;
  height: 300px;
}

h2 {
  background-color: orange;
  text-align: center;
  font-size: 20px;
  font-weight: 800;
}
.st{
  text-align: center;
  margin: 10px 0;
  color: white;
}
</style>
